package com.egao.gzh.controller;

import com.egao.common.core.web.BaseController;
import com.egao.common.core.web.JsonResult;
import com.egao.common.system.entity.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author : Doman
 * @version ：1.0
 * @date : 2020-04-12 17:33
 */
@RestController
@RequestMapping("/api/gzh")
public class GzhWithTokenController extends BaseController {

    /**
     *  验证小程序的token有没有过期
     */
    @PostMapping("/auth")
    public JsonResult updateMyInfo(HttpServletRequest request) {
        User a = getLoginUser();
        return JsonResult.ok("已登陆");
    }
}